<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
<xsl:stylesheet 
  version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns:msxml="urn:schemas-microsoft-com:xslt"
  xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:tagsLib="urn:tagsLib" xmlns:BlogLibrary="urn:BlogLibrary" 
  exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets tagsLib BlogLibrary ">


<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:variable name="propertyAlias" select="string('eLOAccordion')" /> 

<xsl:template match="/">
<xsl:if test="$currentPage/eLOAccordion/items/item">
  <div id="eLOPageAccordianDiv">
    <xsl:for-each select="$currentPage/eLOAccordion/items/item">
      <h3>
        <a href="#"><xsl:value-of select="./data [@alias = 'eLOAccordionHeader']" disable-output-escaping="yes" /></a>
      </h3>
      <div>
        <xsl:value-of select="./data [@alias = 'eLOAccordionContent']" disable-output-escaping="yes" /> 
      </div>
    </xsl:for-each>
  </div> <!-- end of eLOPageAccordianDiv div-->
  <script type="text/javascript">
	  <![CDATA[
	  $(function() {
		$( "#eLOPageAccordianDiv" ).accordion({active: false, autoHeight: false	});
	  });
	  ]]>  
  </script>
</xsl:if>

</xsl:template>

</xsl:stylesheet>